package com.hexiang.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hexiang.config.UserProperties;

@RestController
public class UserController {

    @Autowired
    UserProperties userProperties;

    @GetMapping("/user/hello")
    public String sayHello() {
        return "name=" + userProperties.getName() + ",password=" + userProperties.getPassword() + " ";
    }
}
